CAM Post/pt-br

Other languages:

CAM Post

Menu location
CAM → Post Process
Workbenches
CAM
Default shortcut
P P
Introduced in version
-
See also
None

Description

The tool Post exports the selected CAM Job to a G-code file.

Each CNC Controller speaks a specific G-code dialect, requiring a Dialect-correct Postprocessor to translate the final output from the agnostic internal FreeCAD G-code dialect.

Typical functions of the Postprocessor include

Postprocessor Customization

If you want to write your own postprocessor, have a look at the CAM Postprocessor Customization page.

Note: Several provided Postprocessors generate suitable code for many CNC controllers, or can be used as templates for modification

Postprocessors contain configuration flags and are designed to be tuned by adding G-codes and M-codes to provided definitions for:

Postprocessors use FreeCAD's internal G-code dialect in conjunction with the Postprocessor configuration definitions, to generate Dialect-Correct G-code for target machines. This allows the CAM workbench to generate correct G-code to target various CNC machine controllers by invoking different Postprocessors.

CNC Machine Controller types include:

If only one CNC machine is used, or if all CNC machines share a common Postprocesor, the CAM workbench would need to include only a single Postprocessor. If a single Postprocessor is inadequate to output G-code for all target CNC controllers, then multiple Postprocessors must be installed.

Usage

  1. Select a CAM Job in the Tree view.
  2. There are several ways to invoke the command:
    • Press the CAM Post button.
    • Select the CAM → Post Process option from the menu.
    • Use the keyboard shortcut: P then P.
  3. Confirm the Output File name and directory

Options

Output file and Postprocessor properties can be set in the Job, at any time, prior to invoking the Postprocessor.

The provided Postprocessors are written with comments indicating areas containing Flags, Configuration Variables, and Sections of G-Codes and M-Codes that are to be used by the Postprocessor to configure the output.

Typical Configuration True/False Flags include:

Typical Configuration Variables include:

Typical Configuration Sections include:

The EditPreferences...CAMJob Preferences tabDefaultsCAM is used to set the default Postprocessor selected on Job creation. This allows CAM workbench to be configured to only display desired Postprocessors, and to set a default.

Included Postprocessors are saved in FreeCAD/Mod/CAM/CAM/Post/scripts by default:

Limitations